package com.learn1;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration  // 表示当前类为配置类 [ 等同spring的xml配置文件 ]
@ComponentScan("com.learn1")    // 自动扫描包名下：@Service @Component @Repository @Controller，并注册为Bean
public class DiConfig {
}
